# -*- coding: utf-8 -*-
"""
@ Created on 2024-06-14 12:23
---------
@summary: 系统消息常量
---------
@author: Lsaiah
"""

# 通用消息
MESSAGE_SUCCESS = "操作成功"
MESSAGE_FAILED = "操作失败"
MESSAGE_ERROR = "系统错误"
MESSAGE_NOT_FOUND = "资源不存在"
MESSAGE_UNAUTHORIZED = "未授权访问"
MESSAGE_FORBIDDEN = "禁止访问"
MESSAGE_BAD_REQUEST = "请求参数错误"
MESSAGE_SERVER_ERROR = "服务器内部错误"

# 用户相关消息
MESSAGE_USER_LOGIN_SUCCESS = "登录成功"
MESSAGE_USER_LOGIN_FAILED = "登录失败"
MESSAGE_USER_LOGOUT_SUCCESS = "退出登录成功"
MESSAGE_USER_REGISTER_SUCCESS = "注册成功"
MESSAGE_USER_REGISTER_FAILED = "注册失败"
MESSAGE_USER_NOT_FOUND = "用户不存在"
MESSAGE_USER_ALREADY_EXISTS = "用户已存在"
MESSAGE_USER_PASSWORD_ERROR = "密码错误"
MESSAGE_USER_ACCOUNT_DISABLED = "账户已被禁用"
MESSAGE_USER_TOKEN_EXPIRED = "令牌已过期"
MESSAGE_USER_TOKEN_INVALID = "令牌无效"

# 权限相关消息
MESSAGE_PERMISSION_DENIED = "权限不足"
MESSAGE_ROLE_NOT_FOUND = "角色不存在"
MESSAGE_PERMISSION_NOT_FOUND = "权限不存在"

# 数据相关消息
MESSAGE_DATA_CREATE_SUCCESS = "数据创建成功"
MESSAGE_DATA_UPDATE_SUCCESS = "数据更新成功"
MESSAGE_DATA_DELETE_SUCCESS = "数据删除成功"
MESSAGE_DATA_QUERY_SUCCESS = "数据查询成功"
MESSAGE_DATA_NOT_FOUND = "数据不存在"
MESSAGE_DATA_ALREADY_EXISTS = "数据已存在"
MESSAGE_DATA_VALIDATION_ERROR = "数据验证失败"

# 文件相关消息
MESSAGE_FILE_UPLOAD_SUCCESS = "文件上传成功"
MESSAGE_FILE_UPLOAD_FAILED = "文件上传失败"
MESSAGE_FILE_NOT_FOUND = "文件不存在"
MESSAGE_FILE_TOO_LARGE = "文件过大"
MESSAGE_FILE_TYPE_NOT_ALLOWED = "文件类型不允许"

# 系统相关消息
MESSAGE_SYSTEM_MAINTENANCE = "系统维护中"
MESSAGE_SYSTEM_BUSY = "系统繁忙，请稍后重试"
MESSAGE_NETWORK_ERROR = "网络连接错误"
MESSAGE_DATABASE_ERROR = "数据库连接错误"
MESSAGE_REDIS_ERROR = "缓存连接错误"